package com.project.base.service.impl;

import java.io.Serializable;

import com.project.base.dao.BaseDao;
import com.project.base.entity.BaseEntity;
import com.project.base.service.BaseService;

public class BaseServiceImpl<T extends BaseEntity, PK extends Serializable> implements BaseService<T , PK>{

	private BaseDao<T, PK> baseDao;
	
	public BaseDao<T, PK> getBaseDao() {
		return baseDao;
	}

	public void setBaseDao(BaseDao<T, PK> baseDao) {
		this.baseDao = baseDao;
	}

	@Override
	public T getObject(String id) {
		return baseDao.getObject(id);
	}

	@Override
	public void saveObject(T entity) {
		baseDao.saveObject(entity);
	}

}
